home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6559 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  773 b 

  1. Path: brtph500.bnr.ca!news
  2. From: Gilbert Banks <gilbertb@bnr.ca>
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: How to the size of a file in C ?
  5. Date: 9 Feb 1996 12:31:06 GMT
  6. Organization: Bell Northern Research
  7. Message-ID: <4ffeqa$pjh@brtph500.bnr.ca>
  8. NNTP-Posting-Host: brtphb49.bnr.ca
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1 (X11; I; HP-UX A.09.05 9000/712)
  13. X-URL: news://rtpnews0/comp.lang.c
  14.  
  15. How do I get the size of a file in C UNIX-based?  I tried sizeof <file>, but 
  16. that only returns the size of the object called "<file>" and not the data.
  17. I know about filelength(), also, but that is DOS, Windows, and OS/2.
  18.  
  19. Can someone help me? Post a reply, my email is corruptted.
  20. -- 
  21. Gilbert Banks
  22.  
  23.